{"ast":null,"code":"var _jsxFileName = \"/data/messenger.client/src/components/Button/index.tsx\";\nimport React from \"react\";\nimport { Button as BaseButton } from '@mui/material';\nimport classNames from \"classnames\";\nimport styles from \"./Button.module.scss\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst Button = _ref => {\n  let {\n    text,\n    fullWidth = true,\n    callback,\n    customClassName = ''\n  } = _ref;\n  return /*#__PURE__*/_jsxDEV(BaseButton, {\n    type: \"submit\",\n    variant: \"contained\",\n    fullWidth: fullWidth,\n    onClick: () => callback && callback,\n    disableElevation: true,\n    className: classNames(styles.btn, {\n      customClassName: customClassName && (customClassName === null || customClassName === void 0 ? void 0 : customClassName.length) > 0\n    }),\n    children: text\n  }, void 0, false, {\n    fileName: _jsxFileName,\n    lineNumber: 9,\n    columnNumber: 9\n  }, this);\n};\n_c = Button;\nexport default Button;\nvar _c;\n$RefreshReg$(_c, \"Button\");","map":{"version":3,"names":["React","Button","BaseButton","classNames","styles","text","fullWidth","callback","customClassName","btn","length"],"sources":["/data/messenger.client/src/components/Button/index.tsx"],"sourcesContent":["import React from \"react\";\nimport {ButtonProps} from \"../../models/props/ButtonProps\";\nimport {Button as BaseButton} from '@mui/material';\nimport classNames from \"classnames\";\nimport styles from \"./Button.module.scss\";\n\nconst Button: React.FC<ButtonProps> = ({text, fullWidth = true, callback, customClassName = ''}) => {\n    return (\n        <BaseButton\n            type=\"submit\"\n            variant=\"contained\"\n            fullWidth={fullWidth}\n            onClick={() => callback && callback}\n            disableElevation={true}\n            className={classNames(styles.btn, {\n                customClassName: customClassName && customClassName?.length > 0\n            })}\n        >\n            {text}\n        </BaseButton>\n    );\n}\n\nexport default Button;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAAQC,MAAM,IAAIC,UAAU,QAAO,eAAe;AAClD,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,MAAM,MAAM,sBAAsB;AAAC;AAE1C,MAAMH,MAA6B,GAAG,QAA8D;EAAA,IAA7D;IAACI,IAAI;IAAEC,SAAS,GAAG,IAAI;IAAEC,QAAQ;IAAEC,eAAe,GAAG;EAAE,CAAC;EAC3F,oBACI,QAAC,UAAU;IACP,IAAI,EAAC,QAAQ;IACb,OAAO,EAAC,WAAW;IACnB,SAAS,EAAEF,SAAU;IACrB,OAAO,EAAE,MAAMC,QAAQ,IAAIA,QAAS;IACpC,gBAAgB,EAAE,IAAK;IACvB,SAAS,EAAEJ,UAAU,CAACC,MAAM,CAACK,GAAG,EAAE;MAC9BD,eAAe,EAAEA,eAAe,IAAI,CAAAA,eAAe,aAAfA,eAAe,uBAAfA,eAAe,CAAEE,MAAM,IAAG;IAClE,CAAC,CAAE;IAAA,UAEFL;EAAI;IAAA;IAAA;IAAA;EAAA,QACI;AAErB,CAAC;AAAA,KAfKJ,MAA6B;AAiBnC,eAAeA,MAAM;AAAC;AAAA"},"metadata":{},"sourceType":"module"}